package com.polidea.rxohosble2.internal;

import com.polidea.rxohosble2.annotation.IntDef;
import ohos.bluetooth.ble.GattCharacteristic;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

/**
 * Annotation denoting that annotated int is either one or combination of flags describing characteristic properties
 * from {@link GattCharacteristic}.
 */
@Retention(RetentionPolicy.SOURCE)
@IntDef(flag = true,
        value = {GattCharacteristic.PROPERTY_READ,
//                GattCharacteristic.PROPERTY_BROADCAST,
                GattCharacteristic.PROPERTY_WRITE,
                GattCharacteristic.PROPERTY_WRITE_NO_RESPONSE,
//                GattCharacteristic.PROPERTY_SIGNED_WRITE,
//                GattCharacteristic.PROPERTY_INDICATE,
//                GattCharacteristic.PROPERTY_NOTIFY
})
public @interface BluetoothGattCharacteristicProperty { }
